package org.NooLab.randomgraph.components;




/**
 * 
 * later, we will allow for plugins, such that the chunking could be 
 * provided by other modules
 * 
 * Plugin algorithms could be configured then in a targeted manner, just for
 * a single type of chunks. 
 *
 */
public class TextChunkerFactory {

	
	
	
	// ========================================================================
	public TextChunkerFactory(){
		
	}
	// ========================================================================
	
	
	public static TextChunkerIntf getChunker(int target) {
		// 
		if (target== TextChunkerIntf._CHUNKING_TARGET_WORD){
			WordChunker wordChunker = new WordChunker(target)  ;
			return wordChunker;
		}
		if (target== TextChunkerIntf._CHUNKING_TARGET_SENTENCE){
			SentenceChunker stcChunker = new SentenceChunker(target)  ;
			return stcChunker;
		}
		return null;
	}

	
	
	
}
